Optimal. Leaf size=31 \[ b x+\frac {a \coth (c+d x)}{d}-\frac {a \coth ^3(c+d x)}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3296, 1275,
213} \begin {gather*} -\frac {a \coth ^3(c+d x)}{3 d}+\frac {a \coth (c+d x)}{d}+b x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 1275
Rule 3296
Rubi steps
\begin {align*} \int \text {csch}^4(c+d x) \left (a+b \sinh ^4(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \frac {a-2 a x^2+(a+b) x^4}{x^4 \left (1-x^2\right )} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (\frac {a}{x^4}-\frac {a}{x^2}-\frac {b}{-1+x^2}\right ) \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {a \coth (c+d x)}{d}-\frac {a \coth ^3(c+d x)}{3 d}-\frac {b \text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=b x+\frac {a \coth (c+d x)}{d}-\frac {a \coth ^3(c+d x)}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 40, normalized size = 1.29 \begin {gather*} b x+\frac {2 a \coth (c+d x)}{3 d}-\frac {a \coth (c+d x) \text {csch}^2(c+d x)}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.39, size = 37, normalized size = 1.19
method | result | size |
risch | \(b x -\frac {4 a \left (3 \,{\mathrm e}^{2 d x +2 c}-1\right )}{3 d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{3}}\) | \(37\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 97 vs.
\(2 (29) = 58\).
time = 0.26, size = 97, normalized size = 3.13 \begin {gather*} b x + \frac {4}{3} \, a {\left (\frac {3 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} - 1\right )}} - \frac {1}{d {\left (3 \, e^{\left (-2 \, d x - 2 \, c\right )} - 3 \, e^{\left (-4 \, d x - 4 \, c\right )} + e^{\left (-6 \, d x - 6 \, c\right )} - 1\right )}}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 129 vs.
\(2 (29) = 58\).
time = 0.42, size = 129, normalized size = 4.16 \begin {gather*} \frac {2 \, a \cosh \left (d x + c\right )^{3} + 6 \, a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + {\left (3 \, b d x - 2 \, a\right )} \sinh \left (d x + c\right )^{3} - 6 \, a \cosh \left (d x + c\right ) - 3 \, {\left (3 \, b d x - {\left (3 \, b d x - 2 \, a\right )} \cosh \left (d x + c\right )^{2} - 2 \, a\right )} \sinh \left (d x + c\right )}{3 \, {\left (d \sinh \left (d x + c\right )^{3} + 3 \, {\left (d \cosh \left (d x + c\right )^{2} - d\right )} \sinh \left (d x + c\right )\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 45, normalized size = 1.45 \begin {gather*} \frac {3 \, {\left (d x + c\right )} b - \frac {4 \, {\left (3 \, a e^{\left (2 \, d x + 2 \, c\right )} - a\right )}}{{\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{3}}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.70, size = 81, normalized size = 2.61 \begin {gather*} \frac {4\,a-12\,a\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,b\,d\,x+9\,b\,d\,x\,{\mathrm {e}}^{2\,c+2\,d\,x}-9\,b\,d\,x\,{\mathrm {e}}^{4\,c+4\,d\,x}+3\,b\,d\,x\,{\mathrm {e}}^{6\,c+6\,d\,x}}{3\,d\,{\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )}^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________